import request from '@/utils/request'

// 查询云设备列表
export function listEquipment(query) {
    return request({
        url: '/cloud/equipment/list', method: 'get', params: query
    })
}

// 查询云设备详细
export function getEquipment(id) {
    return request({
        url: '/cloud/equipment/' + id, method: 'get'
    })
}

// 新增云设备
export function addEquipment(data) {
    return request({
        url: '/cloud/equipment', method: 'post', data: data
    })
}

// 修改云设备
export function updateEquipment(data) {
    return request({
        url: '/cloud/equipment', method: 'put', data: data
    })
}

// 删除云设备
export function delEquipment(id) {
    return request({
        url: '/cloud/equipment/' + id, method: 'delete'
    })
}
